//该实例在bin文件中已经初始化了
const mongoose = require('mongoose')

const UserType = {
    account: String,
    password: String,
    token:String
}
//user对应数据库的users集合
//这里的集合传到数据库会多个s
const dbUser = mongoose.model('user', new mongoose.Schema(UserType))

module.exports = dbUser